-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Use Rustc prefix for rustc attrs in AttributeKind
#151827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @rust-lang/wg-const-eval Some changes occurred to constck cc @fee1-dead Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer Some changes occurred to the CTFE machinery Some changes occurred in compiler/rustc_attr_parsing cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_hir/src/attrs |
|
At some point I even considered having a separate rustc attr enum so it would be Attr kind::RustC(RustcAttrKind::...). We can always still do that of course, not sure if we want that. But I do think this is nice for consistency. Dya agree @JonathanBrouwer? |
|
r=me if you ack Jonathan, just want you to also be aware of changes here |
|
This change makes a lot of sense to me. Thanks for making me aware :) @bors r=jdonszelmann,JonathanBrouwer rollup |
…uwer Rollup of 8 pull requests Successful merges: - #147387 (hir_owner_parent optimized to inlined call for non-incremental build) - #150271 (Move struct placeholder pt2) - #151283 (Suggest ignore returning value inside macro for unused_must_use lint) - #151565 (Rename, clarify, and document code for "erasing" query values) - #149482 (thread::scope: document how join interacts with TLS destructors) - #151827 (Use `Rustc` prefix for `rustc` attrs in `AttributeKind`) - #151833 (Treat unions as 'data types' in attr parsing diagnostics) - #151834 (Update `askama` version to `0.15.4`)
Rollup merge of #151827 - clubby789:rustc-attr-names, r=jdonszelmann,JonathanBrouwer Use `Rustc` prefix for `rustc` attrs in `AttributeKind` cc #131229 Most `rustc_...` attrs have their variants named `RustcAttrName`, but several do not. Rename these attributes for consistency. r? @jdonszelmann
…athanBrouwer Port `rustc_layout` to attribute parser Tracking issue: rust-lang#131229 Uses rust-lang#151827 r? jdonszelmann
…athanBrouwer Port `rustc_layout` to attribute parser Tracking issue: rust-lang#131229 Uses rust-lang#151827 r? jdonszelmann
cc #131229
Most
rustc_...attrs have their variants namedRustcAttrName, but several do not. Rename these attributes for consistency.r? @jdonszelmann